package com.huaxiafinance.management.dto.request;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by huangwencheng on 2017/12/08.
 */
public class BonusDto {
    //资金变动类别
    @NotNull(message = "资金变动类别不能为空")
    private Integer bonusType;
    //开始时间
    private String startTime;
    //结束时间
    private String endTime;

    private Date startDate;

    private Date endDate;

    @NotNull(message = "页数不能为空")
    private Integer page;

    @Min(value = 1, message = "分页最小行数为1")
    @Max(value = 50, message = "分页最大行数为50")
    private int rows;

    @NotNull(message = "userUuid不能为空")
    private String userUuid;

    public Integer getBonusType() {
        return bonusType;
    }

    public void setBonusType(Integer bonusType) {
        this.bonusType = bonusType;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public String getUserUuid() {
        return userUuid;
    }

    public void setUserUuid(String userUuid) {
        this.userUuid = userUuid;
    }

    @Override
    public String toString() {
        return "BonusDto{" +
                "bonusType=" + bonusType +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", page=" + page +
                ", rows=" + rows +
                ", userUuid='" + userUuid + '\'' +
                '}';
    }
}
